﻿
namespace DataAccessLayer
{
    public sealed class BulletFactory : BulletFactoryBase
    {
        public override NormalBullet ConstructBullet(int power, int speed, EditorRect sourceRect, EditorRect colRect)
        {
            return new NormalBullet
                       {
                           Power = power,
                           Speed = speed,
                           SourceRect = sourceRect,
                           CollisionRectangle = colRect
                       };
        }

        public override TargetingBullet ConstructTargetingBullet(int power, int speed, EditorRect sourceRect, EditorRect colRect)
        {
            return new TargetingBullet
                        {
                            Power = power,
                            Speed = speed,
                            SourceRect = sourceRect,
                            CollisionRectangle = colRect
                        };
        }

        public override Missile ConstructMissile(int power, int speed, EditorRect sourceRect, EditorRect colRect)
        {
            return new Missile
                        {
                            Power = power,
                            Speed = speed,
                            SourceRect = sourceRect,
                            CollisionRectangle = colRect
                        };
        }
    }
}